using Microsoft.AspNetCore.Mvc;

namespace KnowledgeQA.Web.Controllers
{
    /// <summary>
    /// 主页控制器
    /// </summary>
    public class HomeController : Controller
    {
        private readonly ILogger<HomeController> _logger;

        public HomeController(ILogger<HomeController> logger)
        {
            _logger = logger;
        }

        /// <summary>
        /// 首页
        /// </summary>
        /// <returns>首页视图</returns>
        public IActionResult Index()
        {
            return View();
        }

        /// <summary>
        /// 知识库管理页面
        /// </summary>
        /// <returns>知识库管理视图</returns>
        public IActionResult Knowledge()
        {
            return View();
        }

        /// <summary>
        /// 智能问答页面
        /// </summary>
        /// <returns>智能问答视图</returns>
        public IActionResult Chat()
        {
            return View();
        }

        /// <summary>
        /// 系统设置页面
        /// </summary>
        /// <returns>系统设置视图</returns>
        public IActionResult Settings()
        {
            return View();
        }

        /// <summary>
        /// 样式测试页面
        /// </summary>
        /// <returns>样式测试视图</returns>
        public IActionResult Test()
        {
            return View();
        }

        /// <summary>
        /// 按钮样式测试页面
        /// </summary>
        /// <returns>按钮测试视图</returns>
        public IActionResult ButtonTest()
        {
            return View();
        }

        /// <summary>
        /// 按钮显示测试页面
        /// </summary>
        /// <returns>按钮显示测试视图</returns>
        public IActionResult ButtonDisplayTest()
        {
            return View();
        }

        /// <summary>
        /// Knowledge页面调试版本
        /// </summary>
        /// <returns>Knowledge调试视图</returns>
        public IActionResult KnowledgeDebug()
        {
            return View();
        }

        /// <summary>
        /// 按钮颜色测试页面
        /// </summary>
        /// <returns>按钮颜色测试视图</returns>
        public IActionResult ButtonColorTest()
        {
            return View();
        }

        /// <summary>
        /// 静态文件测试页面
        /// </summary>
        /// <returns>静态文件测试视图</returns>
        public IActionResult StaticFileTest()
        {
            return View();
        }

        /// <summary>
        /// 错误页面
        /// </summary>
        /// <returns>错误视图</returns>
        [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
        public IActionResult Error()
        {
            return View();
        }
    }
} 